package com.yechaoa.pictureselectordemo.viewholder.use;

import android.view.View;
import android.widget.TextView;

import com.yechaoa.pictureselectordemo.R;
import com.yechaoa.pictureselectordemo.db.SuceptorOperationHistory;
import com.yechaoa.pictureselectordemo.viewholder.Bind;
import com.yechaoa.pictureselectordemo.viewholder.RLayout;
import com.yechaoa.pictureselectordemo.viewholder.RViewHolder;

import butterknife.BindView;
import butterknife.ButterKnife;


/**
 * Created by wcy on 2018/1/20.
 */
@RLayout(R.layout.view_holder_susceptor_history)
public class SusceptorHistoryListViewHolder extends RViewHolder<SuceptorOperationHistory> {
     TextView tv_vh_op_type;

     TextView tv_vh_sus_id;
    TextView tv_vh_op_date;
    TextView tv_vh_cham;
    public SusceptorHistoryListViewHolder(View itemView) {
        super(itemView);
        //绑定处理
        //ButterKnife.bind(itemView);
        tv_vh_sus_id = (TextView) itemView.findViewById(R.id.tv_vh_sus_id);
        tv_vh_op_type = (TextView) itemView.findViewById(R.id.tv_vh_op_type);
        tv_vh_op_date= (TextView) itemView.findViewById(R.id.tv_vh_op_date);
        tv_vh_cham= (TextView) itemView.findViewById(R.id.tv_vh_cham);
    }

    @Override
    public void refresh() {
        tv_vh_op_type.setText(data.getOp_param().toString());
        tv_vh_sus_id.setText(data.getPanhao_id_1().toString());
        tv_vh_op_date.setText(data.getOp_datetime());
        tv_vh_cham.setText(data.getChamber());
    }
}
